'use strict';
const db = uniCloud.database()
// const goodsCollection = db.collection('sort')
exports.main = async (event, context) => {
	// let res = await goodsCollection.get()
	// return res
	const {
		title
	} = event
	const res = await db.collection('sort').where({
		"title":title
	}).get()
	//返回数据给客户端
	return res
};
